x1=0, y1=0, x2=512, y2=253